/************************************
 * created by Tonk (tonk@ctonk.com) *
 ************************************/

// equipment.cpp

#include "definitions.h"
#include "equipment.h"
#include "object.h"


Equipment::Equipment() {
	_location = 0;
	_visible = false;
	_object = NULL;
}

Equipment::Equipment( int location ) {
	_location = location;
	_visible = false;
	_object = NULL;
}

Equipment::Equipment( Equipment& it ) {
	_location = it.getLocation();
	_visible = it.getVisible();
	_object = it.getObject();
}

Equipment::~Equipment() {
	_object = NULL;
}

Equipment& Equipment::operator = ( Equipment& it ) {
	_location = it.getLocation();
	_visible = it.getVisible();
	_object = it.getObject();
	return *this;
}

void Equipment::setLocation( int location ) {
	_location = location;
	return;
}

int Equipment::getLocation() {
	return _location;
}

void Equipment::setVisible( bool visible ) {
	_visible = visible;
	return;
}

bool Equipment::getVisible() {
	return _visible;
}

void Equipment::setObject( Object* object ) {
	_object = object;
	return;
}

Object* Equipment::getObject() {
	return _object;
}
